<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
<script type="text/javascript">
    function valida( ) {
        var aceptar = confirm("Los datos son correctos?") ;
        if ( aceptar == false )
            return false ;
        return true ;
    }
</script>
<c:set value="${fn:length(Producto)}" var="prodLength" />
					<div id="bodyContent">
						<h1>Crear BPS</h1>
						
						<center>
						<html:form action='CrearBpsCrear.do' method='post' onsubmit="return valida(this);" >
						<html:hidden property="catalogoId" value="15"/>
						<html:hidden property="operation" value="1"/>
						<br/>
						
						<div class='errors'>
						<html:errors/>
						</div>
						
						<table class="TablaCatalogosNuevoTipoCuenta">
							<thead>
								<tr>
									<th>
										Nuevo BPS
									</td>
								</tr>
							</thead>
							<tr>
								<td>
									<br/>
									<table class='TablaCatalogosFields'>
										<tr>
											<td class='TDLabel'>
												Domestic Purchase Bps:&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo1" styleClass='TextField' />
											</td>
										</tr>
										<tr>
											<td class='TDLabel'>
												Percent Domestic: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo2" styleClass='TextField' />
											</td>
										</tr>
                                                                                
                                                                                <tr>
											<td class='TDLabel'>
												Intl Bps: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo3" styleClass='TextField' />
											</td>
										</tr>
                                                                                
                                                                                <tr>
											<td class='TDLabel'>
												Card Bps: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo4" styleClass='TextField' />
											</td>
										</tr>
																				
										<tr>
											<td class='TDLabel'>
												Cuenta: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:select property="campoInt1" >                                                                                                    
<c:forEach items="${MCCatalogs.allActiveCounts}" var="count">
													<html:option value="${count.cveCuenta}">${count.nombre}</html:option>
</c:forEach>
												</html:select>                                                                                                
											</td>
										</tr>
                                                                                
                                                                                <tr>
											<td class='TDLabel'>
												Producto: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:select property="campoInt2" >
<c:forEach items="${MCCatalogs.allActiveProduct}" var="prod">
													<html:option value="${prod.cveProducto}">${prod.nombre}</html:option>
</c:forEach>
												</html:select>
											</td>
										</tr>
                                                                                
										<tr>
											<td colspan='2' class='TDButton'>
												<html:submit value='Crear' styleClass="ButtonSubmit" />
											</td>
										</tr>
                                                                                
									</table>
								</td>
							</tr>
						</table>
						</html:form>
						</center>
					</div>
					<div id="footContent"></div>